@charset "UTF-8";

@import "base/base";
@import "img";

body {
    font: $b-font-weight #{$b-font-size}/#{$b-line-height} $b-font-family;
    color: $c-text;
    a {
        text-decoration: none;
        color: nth($c-link, 1);
        &:hover {
            text-decoration: underline;
            color: nth($c-link, 2);
        }
    }
}

// Coding...
.saying:after {
    content: "|";
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    line-height: 0;
    display: inline-block;
    vertical-align: baseline;
    opacity: 1;
    animation: caret 500ms infinite;
}

html,
body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
    background-color: pink;
    font-size: 100px;
}
body{
    overflow: hidden;
}
button{
    outline: none;
    border: none;
    background-color: transparent;
}

.hide{
    display: none !important;
}

.load{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 0.2rem;

    .loadBar{
        width: 1.5rem;
        height: 0.2rem;
        margin-top: 1rem;
        margin-bottom: 0.1rem;
        background-color: #fff;
        border-radius: 0.12rem;
        position: relative;
        overflow: hidden;
    }
    .loadBar::after{
        content: "";
        width: 0%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background-color: #4eb842;
        animation: toWidth 2s both;
        // animation-fill-mode: forwards;
    }

    button{
        outline: none;
        border: none;
        padding: 0.1rem;
        border-radius: 50%;
        color: #fff;
        background-color:  rgb(224, 116, 224);
        box-shadow:  rgb(110, 55, 110) 3px 4px 5px;
        margin-left: -200%;
        transition: margin 0.5s;
    }
    button:active{
        box-shadow:  rgb(185, 150, 185) 3px 4px 5px;
    }
}

@keyframes toWidth{
    from{
        width: 0%;
    }
    to{
        width: 100%
    }
}


.page1{
    width: 100%;
    height: 100%;
    animation: showPage 0.5s both;
    font-size: 0.16rem;
    background-color: #e3dbdb;
    position: absolute;
    left: 0;
    top: 0;

    .tom{
        width: 3rem;
        height: 2.34rem;
        border-radius: 0.2rem;
        margin: 0.14rem auto 0.2rem;
        background-image: url("../img/base64/tom.gif");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .text,
    #page1-txt{
        width: 3rem;
        margin: auto;
        font-weight: 600;
    }
    .text{
        opacity: 0;
    }

    .btn-wrap{
        width: 100%;
        height: 0.5rem;
        position: absolute;
        bottom: 14%;

        button{
            width: 1rem;
            height: 0.5rem;
            line-height: 0.5rem;
            border-radius: 0.1rem;
            background-color: #6e6b6b;
            color: #fff;
            position: absolute;
            transition: all 0.5s;
        }
    }
}
.btn-like{
    left: -100%;
}
.btn-unlike{
    right: -100%;
}

@keyframes showPage{
    from{
        margin-left: -100%;
    }
    to{
        margin-left: 0%;
    }
}


// 弹窗
.dialog{
    width: 3rem;
    border-radius: 0.05rem;
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.16rem;
    animation: showDialog 0.5s both;

    .main{
        text-align: center;
        padding: 0.2rem;
        color: #000;
        font-weight: 500;
    }

    button{
        width: 100%;
        padding: 0.18rem;
        font-size: 0.18rem;
        font-weight: 700;
        color: #338CE4;
        text-align: center;
        border-top: 1px solid #eee;
    }
    button:active{
        background-color: #ccc;
    }
}

@keyframes showDialog{
    from{
        transform: translate(-50%, -50%) scale(0);
    }
    to{
        transform: translate(-50%, -50%) scale(1);
    }
}


// 计时
.time-cumulate{
    position: fixed;
    bottom: 0;
    font-size: 0.18rem;
    p{
        span{
            color: #20ac10;
        }
    }
    .time{
        margin-left: 0.3rem;
        i{
            font-size: 0.36rem;
        }
    }
}


// 第二页
.page2{
    width: 100%;
    height: 100%;
    animation: showPage 0.5s both;
    font-size: 0.16rem;
    background-color: #e3dbdb;
    position: absolute;
    left: 0;
    top: 0;

    video{
        height: 100%;
    }

    .mask{
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background-image: linear-gradient(bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) );
    }
}
.page2-main{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding: 0 0.16rem;
    h3{
        margin-top: 0.3rem;
        font-size: 0.26rem;
        font-weight: 600;
        text-align: center;
        animation: showTitle 0.5s both;
        animation-delay: 7s;
    }
    p{
        font-size: 0.24rem;
        margin-bottom: 0.1rem;
        animation: showFace 1s both;
        animation-delay: 8s;
    }
    #page2-txt{
        font-weight: 600;
    }
    .text{
        opacity: 0;
    }
}

@keyframes showTitle{
    from{
        transform: translateY(-2rem);
    }
    to{
        transform: translateY(0rem);
    }
}
@keyframes showFace{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}